package com.zd.file.brower.service.impl;

import com.zd.file.brower.service.ReloadPathService;
import com.zd.file.framework.listener.BrowerPathChangeEvent;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ReloadPathServiceImpl implements ReloadPathService {
    @Resource
    private ApplicationContext applicationContext;
    @Override
    public void reload() {
        applicationContext.publishEvent(new BrowerPathChangeEvent(this));
    }
}
